<?php

namespace backend\modules\syscfg\models;

use Yii;

/**
 * This is the model class for table "pubsysctrlinfo".
 *
 * @property string $BRC
 * @property string $SYSSTATUS
 * @property string $TRANDATE
 * @property string $PREDATE
 * @property string $NEXTDATE
 * @property string $ACCDATE
 * @property string $YEARENDDATE
 * @property string $CRY
 * @property string $ARBCRY
 * @property integer $DEBUGLOGLVL
 * @property string $FLAG
 */
class Pubsysctrlinfo extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'pubsysctrlinfo';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['DEBUGLOGLVL'], 'integer'],
            [['BRC', 'CRY', 'ARBCRY'], 'string', 'max' => 3],
            [['SYSSTATUS'], 'string', 'max' => 1],
            [['TRANDATE', 'PREDATE', 'NEXTDATE', 'ACCDATE', 'YEARENDDATE'], 'string', 'max' => 10],
            [['FLAG'], 'string', 'max' => 8]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'BRC' => Yii::t('app', '机构号'),
            'SYSSTATUS' => Yii::t('app', '系统状态'),
            'TRANDATE' => Yii::t('app', '记账日期'),
            'PREDATE' => Yii::t('app', '前一日期'),
            'NEXTDATE' => Yii::t('app', '下一日期'),
            'ACCDATE' => Yii::t('app', '总账日期'),
            'YEARENDDATE' => Yii::t('app', '年终决算日'),
            'CRY' => Yii::t('app', '本币币种'),
            'ARBCRY' => Yii::t('app', '折算币种'),
            'DEBUGLOGLVL' => Yii::t('app', '调试信息'),
            'FLAG' => Yii::t('app', '清算标志'),
        ];
    }
}
